﻿<!DOCTYPE html>
<html>
<head>
    <title>CGI</title>
</head>
<body>
    <h1>Our Page</h1>
    <script>
        //01
        //double & single quote are same in JS
       
        console.log("Hello" + ' world!');
        console.log("The order is \"In Progress\"");
        console.log('Nike\'s Order');


        //02
        //length is a property, not function (no parenthesis)
        /*
        var productType = 'Hardware';
        console.log(productType.length);
        */

        //03 string are mutable in JS, not change unless assign to the new variable
        
        //var productType = ' Hardware ';
        //console.log('[' + productType.trim() + ']');
        /*
        var productType = ' Hardware ';
        productType.trim();
        console.log('[' + productType + ']');
        */

        //04
        /*
        var productType = 'Hardware';
        console.log(productType.toLowerCase());
        console.log(productType.toUpperCase());
        */
    </script>
</body>
</html>